package com.bwda.dsrs.filecenter.domain.vo.userlog;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 *
 * @author liangjianyong
 * @date 2019/5/28
 */
@Data
public class UserLogPageVo {

    private String msg;

    private Integer totalRows;

    private List<UserLogEsVo> rows;

    private List<UserLogVo> data;

//    public void fillProperties(){
//        if(data==null){
//            data=new ArrayList<>();
//        }
//        for(UserLogEsVo one:rows){
//            UserLogVo v=new UserLogVo();
//            v.setId(one.getID());
//            v.setUserCode(one.getUSER_CODE());
//            v.setUserName(one.getUSER_NAME());
//            v.setOrgName(one.getORG_NAME());
//            v.setIpAddr(one.getIP_ADDR());
//            v.setUserAgent(one.getUSER_AGENT());
//            v.setFileId(one.getFILE_ID());
//            v.setFileName(one.getFILE_NAME());
//            v.setFileSize(one.getFILE_SIZE());
//            v.setOriginFileId(one.getORIGIN_FILE_ID());
//            v.setOperateType(one.getOPERATE_TYPE());
//            v.setStatus(one.getSTATUS());
//            v.setRequestUri(one.getREQUEST_URI());
//            v.setMethod(one.getMETHOD());
//            v.setParams(one.getPARAMS());
//            v.setFileLogType(one.getFILE_LOG_TYPE());
//            v.setExceptionMsg(one.getEXCEPTION_MSG());
//            v.setLoginToken(one.getLOGIN_TOKEN());
//            v.setOperateType(one.getOPERATE_TYPE());
//            v.setOperateContent(one.getOPERATE_CONTENT());
//            v.setCreateTime(one.getCREATE_TIME());
//            this.data.add(v);
//        }
//    }

}
